package com.remote.module.feign;

import com.remote.module.dto.TestDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient(name = "visdom-remote-provider", fallbackFactory = FeignServerImpl.class )
public interface FeignServer {

    @RequestMapping(value = "/v1/user/test", method = RequestMethod.POST)
    String test(TestDto body);

}
